package com.cloudlead.fleetAction.action;

import com.cloudlead.common.lang.annotation.Label;
import com.cloudlead.common.worker.action.impl.AbstractActionFactory;
import com.cloudlead.common.worker.annotation.Action;
import com.cloudlead.common.worker.annotation.Order;
import com.cloudlead.fleetAction.BusinessModules;
import com.cloudlead.fleetAction.service.SendCarSer;
import com.cloudlead.fleetService.SendCarService;
import com.cloudlead.fleetService.vo.SendCarVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import javax.validation.constraints.NotNull;

/**
 * Created by wyj on 2015/9/7.
 */
@Controller
public class SendCarActionFactory extends AbstractActionFactory implements SendCarService {
    public SendCarActionFactory() {
        super(BusinessModules.SendCarMa);
    }

    @Autowired
    SendCarSer sendCarSer;

    @Override
    @Action
    @Order(1)
    @Label("派车管理")
    public String SendCarEdit(@NotNull @Label("基本信息")SendCarVo vo) {
        return sendCarSer.SendCarEdit(vo);
    }
}
